import config from "@/config";
import http from "@/utils/request";

export default {
	remove: {
		url: `${config.API_URL}/cache/remove`,
		name: "删除",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
	list: {
		url: `${config.API_URL}/cache/list`,
		name: "分页列表",
		get: async function (data) {
			return await http.get(this.url, data);
		},
	},
	detailList: {
		url: `${config.API_URL}/cache/detail/list`,
		name: "分页列表",
		get: async function (data) {
			return await http.post(this.url, data);
		},
	},
	detail: {
		url: `${config.API_URL}/cache/detail`,
		name: "查看详情",
		post: async function (data) {
			return await http.post(this.url, data);
		},
	},
};
